#ifndef CRSF_H
#define CRSF_H
#include "usart.h"
#include <stdio.h>

#define CRSF_MAX_CHANNEL 16       
#define CRSF_FRAME_SIZE 28      
#define CRSF_BAUDRATE 420000    
#define CRSF_ADDRESS_FLIGHT_CONTROLLER 0xC8 
#define CRSF_FRAMETYPE_RC_CHANNELS_PACKED 0x16 
    
#define SPORT_ADDRESS_FLIGHT_CONTROLLER 0xEE //sport֡ͷ
#define SPORT_FRAMETYPE_RC_CHANNELS_PACKED 0x16 

void sendCRSFFrame(uint8_t *sportData);
void  CRSF_handle_uart_in(void);
#endif
